# coding=utf-8

import subprocess

while (1):
    inputv = input('$')
    ret = subprocess.getoutput(inputv)
    print(ret)
